package com.link.base.base.user.model;

import com.link.base.base.accnt.model.Account;

/**
 * 小程序用户登陆基础对象
 * @author unknown
 * @date unknown
 */
public class LoginDTO {
    /** 小程序用户信息*/
    private User user;
    /**token*/
    private String token;
    /**refresh_token*/
    private String refresh_token;
    /** 小程序session秘钥*/
    private String sessionKey;
    /** 客户 - 小程序用*/
    private Account account;
    /**过期时间*/
    private Integer expires;
    /**QQ\微信号唯一标识*/
    private String unionId;
    /**QQ\微信号在该应用唯一标识*/
    private String openId;
    /**QQ\微信用户访问凭证*/
    private String accessToken;
    /**ask密钥小程序请求加密*/
    private String aesKey;


    public LoginDTO() {
    }

    public User getUser() {
        return this.user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getToken() {
        return this.token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRefresh_token() {
        return this.refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    @Override
    public String toString() {
        return "LoginDTO{"
                +  "user=" + user
                + ", token='" + token + '\''
                + ", refresh_token='" + refresh_token + '\''
                + ", sessionKey='" + sessionKey + '\''
                + ", account=" + account + '\''
                + ", expires=" + expires + '\''
                + ", unionId=" + unionId + '\''
                + ", openId=" + openId + '\''
                + ", accessToken=" + accessToken
                + '}';
    }

    public Integer getExpires() {
        return expires;
    }

    public void setExpires(Integer expires) {
        this.expires = expires;
    }

    public String getAesKey() {
        return aesKey;
    }

    public void setAesKey(String aesKey) {
        this.aesKey = aesKey;
    }
}
